﻿using System;
using System.Windows.Forms;

namespace MovieBrowser.Presentation.List.SearchDialogs
{
    public partial class SearchTextDialog : Form
    {

        public SearchTextDialog()
        {
            InitializeComponent();
        }

        private void ClSearchClick(object sender, EventArgs e)
        {
            Hide();
        }

        public bool SearchTitle { get { return chkTitle.Checked; } }
        public string Title { get { return textTitle.Text; } }

        public bool SearchHighlight { get { return chkHighlight.Checked; } }
        public string Highlight { get { return textHighlight.Text; } }

        public bool SearchStoryline { get { return chkStoryline.Checked; } }
        public string Storyline { get { return textStoryline.Text; } }

        private void ChkHighlightCheckedChanged(object sender, EventArgs e)
        {
            textHighlight.Enabled = chkHighlight.Checked;
        }

        private void ChkStorylineCheckedChanged(object sender, EventArgs e)
        {
            textStoryline.Enabled = chkStoryline.Checked;
        }

        private void ChkTitleCheckedChanged(object sender, EventArgs e)
        {
            textTitle.Enabled = chkTitle.Checked;
        }

    }
}
